#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>

int main()
{
  int count = 3;
  while(1)
  {
    if (count == 0)
    {
      kill(getpid() , 9);
    }
    printf("my pid is: %d\n",getpid());
    sleep(1);
    count--;
  }
  return 0;
}
